package com.feng.annotation.juc;

import java.util.concurrent.Callable;

/**
 * @author Lee
 * @date 2019/3/10
 */
public class CallableDemo implements Callable<Integer> {
    @Override
    public Integer call() throws Exception {
        int sum = 0;
        for (int i = 0; i < 100; i++) {
            sum += i;
        }
        return sum;
    }
}
